<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
	<div class="form-group">
        <label for="c-pxcategoey" class="control-label col-xs-12 col-sm-2">培训类型:</label>
        <div class="col-xs-12 col-sm-8">
			<select id="c-pxcategoey" class="form-control selectpicker" name="row[pxcategoey]">
                <option value="" >--请选择--</option>
				<option value="全员" >全员</option>
				<option value="干训" >干训</option>
				<option value="见习" >见习</option>
				<option value="职初" >职初</option>
				<option value="骨干" >骨干</option>
				<option value="名优" >名优</option>
            </select>
        </div>
    </div>
	<div class="form-group">
        <label for="c-pxmode" class="control-label col-xs-12 col-sm-2">培训模块:</label>
        <div class="col-xs-12 col-sm-8">
			<select id="c-pxmode" class="form-control selectpicker" name="row[pxmode]">
                <option value="" >--请选择--</option>
				<option value="师德素养" >师德素养</option>
				<option value="知识技能" >知识技能</option>
				<option value="实践体验" >实践体验</option>
            </select>
        </div>
    </div>
	<div class="form-group">
        <label for="c-traintime" class="control-label col-xs-12 col-sm-2">{:__('Traintime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-traintime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" name="row[traintime]" type="text" value="" style="width:120px;">---<input id="c-trainendtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" name="row[trainendtime]" type="text" value="" style="width:120px;">
        </div>
    </div>
	<div class="form-group">
        <label for="c-category" class="control-label col-xs-12 col-sm-2">{:__('Category')}:</label>
        <div class="col-xs-12 col-sm-8">
		    <select id="c-category" class="form-control selectpicker" name="row[category]">
				<option value="仅签到" >仅签到</option>
				<option value="签到签退" >签到签退</option>
            </select>
        </div>
    </div>
	<div class="form-group">
        <label for="c-typerules" class="control-label col-xs-12 col-sm-2">{:__('Typerules')}:</label>
        <div class="col-xs-12 col-sm-8">
               {:build_radios('row[typerules]', ['1/4'=>'1/4', '1/3'=>'1/3', '1/2'=>'1/2', '无'=>'无'], '无')}
         </div>
    </div>
	<div class="form-group">
        <label for="c-cdrules" class="control-label col-xs-12 col-sm-2">{:__('Cdrules')}:</label>
        <div class="col-xs-12 col-sm-8">
			<select id="c-cdrules" class="form-control selectpicker" name="row[cdrules]">
                <option value="" >--请选择--</option>
				<option value="4次迟到/1课时" >4次迟到/1课时</option>
				<option value="3次迟到/1课时" >3次迟到/1课时</option>
				<option value="2次迟到/1课时" >2次迟到/1课时</option>
            </select>
        </div>
    </div>
	<div class="form-group">
        <label for="c-typename" class="control-label col-xs-12 col-sm-2">{:__('Typename')}:</label>
        <div class="col-xs-12 col-sm-8">
			<select id="c-typename" class="form-control selectpicker" name="row[typename]" onChange="jump(this.value)">
                <option value="" >--请选择--</option>
				<option value="预设名册" >预设名册</option>
				<option value="非预设名册" >非预设名册</option>
            </select>
        </div>
    </div>
	<div id='box-avatar' class="form-group" style="display:none;">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2"> </label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" data-rule="" class="form-control" size="50" name="row[avatar]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatar" data-mimetype="*" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
				
            </div>
			<div><a href="#">下载模板</a></div>
        </div>
    </div>
	
	<div class="form-group">
        <label for="c-rules" class="control-label col-xs-12 col-sm-2">{:__('Rules')}:</label>
        <div class="col-xs-12 col-sm-8">
               <input id="c-rules" class="form-control" name="row[rules]" type="text" value="">             
         </div>
    </div>
	<div class="form-group">
        <label for="c-gps" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[content]" class="form-control" cols="30" rows="5" ></textarea>
        </div>
    </div>
	<!--div class="form-group">
        <label for="c-pxstatus" class="control-label col-xs-12 col-sm-2">培训状态:</label>
        <div class="col-xs-12 col-sm-8">
		    <select id="c-pxstatus" class="form-control selectpicker" name="row[pxstatus]">
                <option value="" >--请选择--</option>
				<option value="未开始" >未开始</option>
				<option value="进行中" >进行中</option>
				<option value="已结束" >已结束</option>
            </select>
        </div>
    </div-->
	<div class="form-group">
        <label for="c-erwstatus" class="control-label col-xs-12 col-sm-2">二维码状态:</label>
        <div class="col-xs-12 col-sm-8">
		    <select id="c-erwstatus" class="form-control selectpicker" name="row[erwstatus]">
                <option value="" >--请选择--</option>
				<option value="开启" >开启</option>
				<option value="关闭" >关闭</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label> 
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<script>
    var nodeData = {:json_encode($nodeList); };
	function jump(n){
		if(n=="预设名册"){
			$('#box-avatar').show();
		}else{
			$('#box-avatar').hide();
		}
	}
	
</script>